import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { Aaa8Service } from './aaa8.service';
import { CreateAaa8Dto } from './dto/create-aaa8.dto';
import { UpdateAaa8Dto } from './dto/update-aaa8.dto';

@Controller('aaa8')
export class Aaa8Controller {
  constructor(private readonly aaa8Service: Aaa8Service) {}

  @Post()
  create(@Body() createAaa8Dto: CreateAaa8Dto) {
    return this.aaa8Service.create(createAaa8Dto);
  }

  @Get()
  findAll() {
    return this.aaa8Service.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.aaa8Service.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateAaa8Dto: UpdateAaa8Dto) {
    return this.aaa8Service.update(+id, updateAaa8Dto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.aaa8Service.remove(+id);
  }
}
